<template>
	<h2>盘点任务设置</h2>
	<el-form-item :label="model[globalparam.checkPrintImportTemplate.paramCode].paramName">
		<ex-widget :model="model[globalparam.checkPrintImportTemplate.paramCode]" size="small" :column="{widgetType:'file',code:'paramValue',height:1}"></ex-widget>
	</el-form-item>
	<el-form-item :label="model[globalparam.checkAssetStatisticsRange.paramCode].paramName">
		<ex-check-box v-model="model[globalparam.checkAssetStatisticsRange.paramCode].paramValue" dict-code="ASSET_STATUS"></ex-check-box>
	</el-form-item>
	<el-form-item :label="model[globalparam.checkAssetIncludeDocumentType.paramCode].paramName">
		<ex-check-box v-model="model[globalparam.checkAssetIncludeDocumentType.paramCode].paramValue" dict-code="DOCUMENT_TYPE"></ex-check-box>
	</el-form-item>
</template>

<script>

import globalparam from "@/constant/model/globalparam";
import ExLabel from "@/components/exLabel/index.vue";
import ExFormItem from "@/components/exFormItem/index.vue";
import ExWidget from "@/components/exFormItem/widget.vue";
import ExCheckBox from "@/components/exCheckBox/index.vue";

export default {
	name: 'assetCheckSetting',
	computed: {
		globalparam() {
			return globalparam
		}
	},
	components: {ExCheckBox, ExWidget, ExFormItem, ExLabel},
	props: {
		model: {type: Object, default: {}}
	},
	data() {
		return {
			params: [
				globalparam.checkPrintImportTemplate,
				globalparam.checkAssetStatisticsRange,
				globalparam.checkAssetIncludeDocumentType,
			],
		}
	},
	async created() {
		this.params.forEach(item => {
			if (!this.model[item.paramCode]) {
				this.model[item.paramCode] = item;
			}else{
				this.model[item.paramCode].paramName = item.paramName;
			}
		});
	},
	mounted() {
	},
	methods: {}
}
</script>
